<script>
  export default {
    mounted() {
      wx.showShareMenu({
        withShareTicket: true
      })
    },
  };

</script>

<style lang="less">
  page {
    height: 100%;
    background: #F9F9F9;

  }

  div {
    box-sizing: border-box;

    &.list__body {
      border-bottom: 1rpx solid #f9f9f9;

      .list__title--main {
        color: #404040;
        font-size: 30rpx;
      }
    }
  }

  .cell-btn-controller {
    text-align: center;
    margin-top: 30px;
  }

  .cell-btn {
    width: 180px;
    display: inline-block;
  }


  .blank-spaces {
    display: block;
    width: 100%;
    padding-top: 10px;
    background: rgba(249, 249, 249, 1);
  }

  .container {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .zan-pull-left {
    float: left
  }

  .zan-pull-right {
    float: right
  }

  .zan-center {
    text-align: center
  }

  .zan-right {
    text-align: right
  }

  .zan-text-deleted {
    text-decoration: line-through
  }

  .zan-font-8 {
    font-size: 8px
  }

  .zan-font-10 {
    font-size: 10px
  }

  .zan-font-12 {
    font-size: 12px
  }

  .zan-font-14 {
    font-size: 14px
  }

  .zan-font-16 {
    font-size: 16px
  }

  .zan-font-18 {
    font-size: 18px
  }

  .zan-font-20 {
    font-size: 20px
  }

  .zan-font-22 {
    font-size: 22px
  }

  .zan-font-24 {
    font-size: 24px
  }

  .zan-font-26 {
    font-size: 26px
  }

  .zan-font-30 {
    font-size: 30px
  }

  .zan-font-bold {
    font-weight: 700
  }


  .zan-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    display: inline-block;
    height: 6px;
    width: 6px;
    border-width: 2px 2px 0 0;
    border-color: #c8c8c8;
    border-style: solid;
    -webkit-transform: translateY(-50%) matrix(.71, .71, -.71, .71, 0, 0);
    transform: translateY(-50%) matrix(.71, .71, -.71, .71, 0, 0)
  }

  .zan-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal
  }

  .zan-ellipsis--l2 {
    max-height: 40px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical
  }

  .zan-ellipsis--l3 {
    max-height: 60px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical
  }

  .zan-clearfix {
    zoom: 1
  }

  .zan-clearfix::after {
    content: '';
    display: table;
    clear: both
  }

  .zan-c-red {
    color: #f44
  }

  .zan-c-black {
    color: #000
  }

  .zan-c-green {
    color: #06bf04
  }

  .zan-c-blue {
    color: #38f
  }

  .zan-c-gray {
    color: #c9c9c9
  }

  .zan-c-gray-dark {
    color: #999
  }

  .zan-c-gray-darker {
    color: #666
  }

  .zan-hairline,
  .zan-hairline--bottom,
  .zan-hairline--left,
  .zan-hairline--right,
  .zan-hairline--surround,
  .zan-hairline--top,
  .zan-hairline--top-bottom {
    position: relative
  }

  .zan-hairline--bottom::after,
  .zan-hairline--left::after,
  .zan-hairline--right::after,
  .zan-hairline--surround::after,
  .zan-hairline--top-bottom::after,
  .zan-hairline--top::after,
  .zan-hairline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    -webkit-transform: scale(.5);
    transform: scale(.5);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    pointer-events: none;
    box-sizing: border-box;
    border: 0 solid #e5e5e5
  }

  .zan-hairline--top::after {
    border-top-width: 1px
  }

  .zan-hairline--left::after {
    border-left-width: 1px
  }

  .zan-hairline--right::after {
    border-right-width: 1px
  }

  .zan-hairline--bottom::after {
    border-bottom-width: 1px
  }

  .zan-hairline--top-bottom::after {
    border-width: 1px 0
  }

  .zan-hairline--surround::after {
    border-width: 1px
  }

  /* this rule will be remove */

  * {
    transition: width 2s;
    -moz-transition: width 2s;
    -webkit-transition: width 2s;
    -o-transition: width 2s;
  }

  .search-bar {
    width: 100;
    height: 45px;
    background: rgba(242, 242, 242, 1);
    padding: 5px 15px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  .search {
    display: flex;

    input {
      display: block;
      flex: 1;
      height: 70rpx;
      border-radius: 35rpx;
      background: #fff;
      color: #404040;
      font-size: 14px;
      color: rgba(160, 160, 160, 1);
      text-align: center;
      padding: 0 15rpx;
    }

    .search-btn {
      height: 70rpx;
      line-height: 70rpx;
      color: #404040;
      font-size: 14px;
      text-align: right;
      margin-left: 10px;
    }
  }

  .store-tags {
    display: flex;
    align-items: center;
    margin-bottom: 10px;

    .store-tag {
      padding: 0 8px;
      line-height: 16px;
      background: rgba(255, 255, 255, 1);
      border: 1rpx solid rgba(238, 117, 89, 1);
      border-radius: 8px;
      margin-right: 5px;

      font-size: 10px;
      color: rgba(238, 117, 89, 1);
    }
  }

  .store {
    display: flex;
    padding: 15px;
    width: 100%;
    overflow: hidden;
    background: #fff;

    .store-pic {
      width: 42px;
      height: 42px;
      border-radius: 5px;
      overflow: hidden;
      margin-right: 15px;
      background: #F9F9F9;

      img {
        width: 100%;
        height: 100%;
      }
    }

    .store-info {
      flex: 1;
    }

    .store-name {
      font-size: 15px;
      color: rgba(51, 51, 51, 1);
      display: flex;
      align-items: center;
      margin-bottom: 8px;
      line-height: 1em;
      justify-content: space-between;

      .store-title {
        display: flex;
        align-items: center;
      }

      img {
        margin-left: 10px;
        width: 15px;
        height: 15px;
      }
    }

    .store-rate {
      margin-bottom: 8px;
      font-size: 10px;
      color: #A0A0A0;
      display: flex;
      align-items: center;
      line-height: 1em;

      p {
        margin-left: 20px;
      }

      ._i-rate {
        font-size: 10px;
      }
    }

    .store-collection {
      display: flex;
      align-items: center;
      font-size: 16px;

      span {
        font-size: 12px;
        color: rgba(51, 51, 51, 1);
        line-height: 1em;
      }
    }

    .store-location {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 10px;
      color: #A0A0A0;
      line-height: 1em;

    }
  }

  .add-address {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 49px;
    background: #fff;
    line-height: 49px;
    font-size: 15px;
    color: rgba(238, 117, 89, 1);
    text-align: center;

    &:after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 200%;
      height: 200%;
      transform: scale(0.5);
      transform-origin: 0 0;
      pointer-events: none;
      box-sizing: border-box;
      border: 0 solid #e9eaec;
      border-top-width: 1px;
    }
  }

  .weui-uploader__hd {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    padding-bottom: 10px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center
  }

  .weui-uploader__title {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1
  }

  .weui-uploader__info {
    color: #b2b2b2
  }

  .weui-uploader__bd {
    margin-bottom: -4px;
    margin-right: -9px;
    overflow: hidden
  }

  .weui-uploader__file {
    float: left;
    margin-right: 9px;
    margin-bottom: 9px
  }

  .weui-uploader__img {
    display: block;
    width: 79px;
    height: 79px
  }

  .weui-uploader__file_status {
    position: relative
  }

  .weui-uploader__file_status:before {
    content: " ";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, .5)
  }

  .weui-uploader__file-content {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #fff
  }

  .weui-uploader__input-box {
    float: left;
    position: relative;
    margin-right: 9px;
    margin-bottom: 9px;
    width: 77px;
    height: 77px;
    border: 1rpx solid #EAEAEA
  }

  .weui-uploader__input-box:after,
  .weui-uploader__input-box:before {
    content: " ";
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #d9d9d9
  }

  .weui-uploader__input-box:before {
    width: 2px;
    height: 39.5px
  }

  .weui-uploader__input-box:after {
    width: 39.5px;
    height: 2px
  }

  .weui-uploader__input-box:active {
    border-color: #999
  }

  .weui-uploader__input-box:active:after,
  .weui-uploader__input-box:active:before {
    background-color: #999
  }

  .weui-uploader__input {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0
  }

  .tabs {
    width: 100%;
    display: flex;

    .tab {
      flex: 1;
      font-size: 12px;
      font-family: PingFang-SC-Medium;
      color: rgba(128, 128, 128, 1);
      line-height: 26px;
      text-align: center;
      transition: all .3s;
    }

    .active {
      font-size: 16px;
      color: rgba(238, 117, 89, 1);
      position: relative;

      &:after {
        content: "";
        position: absolute;
        display: block;
        bottom: -8px;
        left: 50%;
        width: 26px;
        margin-left: -13px;
        height: 4px;
        background: rgba(238, 117, 89, 1);
        border-radius: 2px;
        z-index: 99;
      }
    }
  }

  .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
  }

  .tab-bar {
    font-size: 0;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    border-top: 1px solid rgba(248, 248, 248, 1);

    .tab-bar-item {
      flex: 1;
      height: 49px;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;

      &.active {
        text {
          color: #ee7559;
        }

        .tab-bar-pic {
          display: none;
          background: #F9F9F9;

          &.active {
            display: block;
          }
        }
      }

      .tab-bar-pic {
        display: block;
        background: #F9F9F9;

        &.active {
          display: none;
        }
      }
    }

    .tab-bar-pic {
      width: 25px;
      height: 25px;
      background: #F9F9F9;

      image {
        width: 25px;
        height: 25px;
      }
    }

    .tab-bar-pic-active {}

    text {
      font-size: 10px;
      color: rgb(160, 160, 160);
      line-height: 10px;
      margin-top: 5px;
    }
  }

  .tab-bar-bg {
    padding-top: 46px;
    width: 100%;
  }

  .view-item {
    display: none;
    width: 100%;
  }

  .view-item-active {
    display: block;
  }

  .getUserInfo {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 30px;

    p {
      margin-bottom: 20px;
    }
  }

  ._van-dialog {
    z-index: 99999999999;
  }

  .ant-panel {
    background: #fff;
    width: 100%;

    .ant-panel-head {
      border-bottom: 1rpx solid #f9f9f9;
      padding: 30rpx;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .ant-panel-title {
        line-height: 1em;
        font-size: 28rpx;
        color: rgba(64, 64, 64, 1);
      }

      .ant-panel-extra {
        display: flex;
        align-items: center;

        .ant-panel-extra-text {
          line-height: 1em;
          font-size: 24rpx;
          color: rgba(160, 160, 160, 1);
        }

        .ant-panel-extra-icon {
          line-height: 1em;
          width: 12rpx;
          height: 24rpx;
          margin-left: 20rpx;
        }
      }
    }
  }

  .ant-grid-list {
    display: flex;
    align-items: center;
    width: 100%;

    .ant-grid-item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20rpx;

      .ant-grid-icon {
        width: 50rpx;
        height: 50rpx;
        margin: 0 auto;
        display: block;

      }

      .ant-grid-text {
        margin-top: 20rpx;
        line-height: 1em;
        font-size: 24rpx;
        color: rgba(160, 160, 160, 1);
      }
    }
  }

  .receipt-store-header {
    display: flex;
    position: relative;
    height: 38px;
    align-items: center;
    border-bottom: 1px solid #F8F8F8;
    overflow: hidden;

    img {
      display: block;
      width: 16px;
      height: 16px;
      margin-right: 5px;
    }

    .receipt-check {
      height: 34px;
    }

    // &:after {
    //   content: "";
    //   position: absolute;
    //   display: block;
    //   height: 1px;
    //   width: 100%;
    //   top: 0;
    //   left: 0;
    //   bottom: 0;
    //   background: #e9eaec;
    // }

    .store-name {
      margin-left: 10px;
      font-size: 14px;
      color: rgba(51, 51, 51, 1);
    }
  }

  .view-loading {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
  }

</style>
